package top.easyblog.core.dao.auto.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UrlMappingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer limit;

    public UrlMappingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        limit = null;
        offset = null;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return this.limit;
    }

    public UrlMappingExample limit(Integer rows) {
        this.limit = rows;
        return this;
    }

    public UrlMappingExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.limit = rows;
        return this;
    }

    public UrlMappingExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.limit = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeIsNull() {
            addCriterion("compression_code is null");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeIsNotNull() {
            addCriterion("compression_code is not null");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeEqualTo(String value) {
            addCriterion("compression_code =", value, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeNotEqualTo(String value) {
            addCriterion("compression_code <>", value, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeGreaterThan(String value) {
            addCriterion("compression_code >", value, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeGreaterThanOrEqualTo(String value) {
            addCriterion("compression_code >=", value, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeLessThan(String value) {
            addCriterion("compression_code <", value, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeLessThanOrEqualTo(String value) {
            addCriterion("compression_code <=", value, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeLike(String value) {
            addCriterion("compression_code like", value, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeNotLike(String value) {
            addCriterion("compression_code not like", value, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeIn(List<String> values) {
            addCriterion("compression_code in", values, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeNotIn(List<String> values) {
            addCriterion("compression_code not in", values, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeBetween(String value1, String value2) {
            addCriterion("compression_code between", value1, value2, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andCompressionCodeNotBetween(String value1, String value2) {
            addCriterion("compression_code not between", value1, value2, "compressionCode");
            return (Criteria) this;
        }

        public Criteria andSourceUrlIsNull() {
            addCriterion("source_url is null");
            return (Criteria) this;
        }

        public Criteria andSourceUrlIsNotNull() {
            addCriterion("source_url is not null");
            return (Criteria) this;
        }

        public Criteria andSourceUrlEqualTo(String value) {
            addCriterion("source_url =", value, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlNotEqualTo(String value) {
            addCriterion("source_url <>", value, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlGreaterThan(String value) {
            addCriterion("source_url >", value, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlGreaterThanOrEqualTo(String value) {
            addCriterion("source_url >=", value, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlLessThan(String value) {
            addCriterion("source_url <", value, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlLessThanOrEqualTo(String value) {
            addCriterion("source_url <=", value, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlLike(String value) {
            addCriterion("source_url like", value, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlNotLike(String value) {
            addCriterion("source_url not like", value, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlIn(List<String> values) {
            addCriterion("source_url in", values, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlNotIn(List<String> values) {
            addCriterion("source_url not in", values, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlBetween(String value1, String value2) {
            addCriterion("source_url between", value1, value2, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlNotBetween(String value1, String value2) {
            addCriterion("source_url not between", value1, value2, "sourceUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlIsNull() {
            addCriterion("tiny_url is null");
            return (Criteria) this;
        }

        public Criteria andTinyUrlIsNotNull() {
            addCriterion("tiny_url is not null");
            return (Criteria) this;
        }

        public Criteria andTinyUrlEqualTo(String value) {
            addCriterion("tiny_url =", value, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlNotEqualTo(String value) {
            addCriterion("tiny_url <>", value, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlGreaterThan(String value) {
            addCriterion("tiny_url >", value, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlGreaterThanOrEqualTo(String value) {
            addCriterion("tiny_url >=", value, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlLessThan(String value) {
            addCriterion("tiny_url <", value, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlLessThanOrEqualTo(String value) {
            addCriterion("tiny_url <=", value, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlLike(String value) {
            addCriterion("tiny_url like", value, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlNotLike(String value) {
            addCriterion("tiny_url not like", value, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlIn(List<String> values) {
            addCriterion("tiny_url in", values, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlNotIn(List<String> values) {
            addCriterion("tiny_url not in", values, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlBetween(String value1, String value2) {
            addCriterion("tiny_url between", value1, value2, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andTinyUrlNotBetween(String value1, String value2) {
            addCriterion("tiny_url not between", value1, value2, "tinyUrl");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestIsNull() {
            addCriterion("source_url_digest is null");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestIsNotNull() {
            addCriterion("source_url_digest is not null");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestEqualTo(String value) {
            addCriterion("source_url_digest =", value, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestNotEqualTo(String value) {
            addCriterion("source_url_digest <>", value, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestGreaterThan(String value) {
            addCriterion("source_url_digest >", value, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestGreaterThanOrEqualTo(String value) {
            addCriterion("source_url_digest >=", value, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestLessThan(String value) {
            addCriterion("source_url_digest <", value, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestLessThanOrEqualTo(String value) {
            addCriterion("source_url_digest <=", value, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestLike(String value) {
            addCriterion("source_url_digest like", value, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestNotLike(String value) {
            addCriterion("source_url_digest not like", value, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestIn(List<String> values) {
            addCriterion("source_url_digest in", values, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestNotIn(List<String> values) {
            addCriterion("source_url_digest not in", values, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestBetween(String value1, String value2) {
            addCriterion("source_url_digest between", value1, value2, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andSourceUrlDigestNotBetween(String value1, String value2) {
            addCriterion("source_url_digest not between", value1, value2, "sourceUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestIsNull() {
            addCriterion("tiny_url_digest is null");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestIsNotNull() {
            addCriterion("tiny_url_digest is not null");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestEqualTo(String value) {
            addCriterion("tiny_url_digest =", value, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestNotEqualTo(String value) {
            addCriterion("tiny_url_digest <>", value, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestGreaterThan(String value) {
            addCriterion("tiny_url_digest >", value, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestGreaterThanOrEqualTo(String value) {
            addCriterion("tiny_url_digest >=", value, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestLessThan(String value) {
            addCriterion("tiny_url_digest <", value, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestLessThanOrEqualTo(String value) {
            addCriterion("tiny_url_digest <=", value, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestLike(String value) {
            addCriterion("tiny_url_digest like", value, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestNotLike(String value) {
            addCriterion("tiny_url_digest not like", value, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestIn(List<String> values) {
            addCriterion("tiny_url_digest in", values, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestNotIn(List<String> values) {
            addCriterion("tiny_url_digest not in", values, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestBetween(String value1, String value2) {
            addCriterion("tiny_url_digest between", value1, value2, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andTinyUrlDigestNotBetween(String value1, String value2) {
            addCriterion("tiny_url_digest not between", value1, value2, "tinyUrlDigest");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}